package com.yidu.menuProject.dao;

import java.util.List;

import com.yidu.menuProject.model.EhyManagerRoleModel;
import com.yidu.menuProject.model.EhyRoleModel;

public interface EhyManagerRoleModelMapper {
	 int deleteByPrimaryKey(String mrId);

	    int insert(EhyManagerRoleModel record);
	    
	    int deleteMan(String manId);
	    
	    int insertSelective(EhyManagerRoleModel po);

	    EhyManagerRoleModel selectByPrimaryKey(String mrId);

	    int updateByPrimaryKeySelective(EhyManagerRoleModel record);

	    int updateByPrimaryKey(EhyManagerRoleModel record);
	    
	    public List<EhyRoleModel> selectManagerRole(String manId);
    
	    /**
	     * 管理者分配角色  
	     * @return  
	     */
	    public int addRoleMana(EhyManagerRoleModel manaRole);

	    /**
	     * 修改用户角色     
	     * @param manaRole
	     * @return
	     */
	    public int updateManaRole(EhyManagerRoleModel manaRole);
}


